package org.fitweb.fixture;

import fit.Parse;
import fit.SummaryFixture;

import java.util.Date;

public class TidySummaryFixture extends SummaryFixture {
    @Override
    public void doTable(Parse table) {
        super.doTable(table);
        Parse countsRow = table.parts.more;
        Parse timeStampRow = countsRow.parts.more;
        timeStampRow.more = timestamp();
    }

    private Parse timestamp() {
        return tr(td("date", td("" + new Date(), null)), null);
    }
}
